package chapte05.dome.Examole;

public class deom03 {
    public static void main(String[] args) {
        String str = "abcd";
        System.out.println("将字符串转换为字符数组最后的结果:");
        char[] charArray = str.toCharArray();// 字符串转换为字符数组
        for (int i = 0; i < charArray.length; ){
            if (i != charArray.length -1){
                System.out.println(charArray[i] + ",");
            }else {
                System.out.println(charArray);
            }
        }
        System.out.println("将int");
    }

}

